<?php
class Dashboard_Data_Managepages implements Dashboard_Data_Mainable {
    
    private $modulemanager_data_getallmodules;
    private $categorymanager_data_getallcatgories;
    private $subcategorymanager_data_getallsubcategories;
    private $pagemanager_data_getallpages;
    
    public function __construct() {
        $this->modulemanager_data_getallmodules = new Modulemanager_Data_Getallmodules;
        $this->categorymanager_data_getallcatgories = new Categorymanager_Data_Getallcategories;
        $this->subcategorymanager_data_getallsubcategories = new Subcategorymanager_Data_Getallsubcategories;
        $this->pagemanager_data_getallpages = new Pagemanager_Data_Getallpages;
    }

   public function main(array $variables = null) {
        $page['module'] = $this->modulemanager_data_getallmodules->main($variables);
        $page['category'] = $this->categorymanager_data_getallcatgories->main($variables);
        $page['subcategory'] = $this->subcategorymanager_data_getallsubcategories->main($variables);
        $page['page'] = $this->pagemanager_data_getallpages->main($variables);
        $page['template'] = WEB_ROOT_FOLDER."dashboard/views/pagemanager.php";
        return $page;
    }
    
}

